package com.jewaton.authmanage.pojo;

import java.util.List;

/**
 * 资源表
 * @author magiczeng
 *
 */
public class Resource implements java.io.Serializable {

	private static final long serialVersionUID = 6923696558243868141L;
	
	//资源表主键
	private Long id;
	
	//资源URL地址
	private String url;
	
	//资源描述
	private String descr;
	
	//资源状态 1为启用0为禁用 默认1
	private Boolean enabled = true;
	
	//哪些角色拥有该资源
	private List<Role> roleList;
	
	//哪些用户拥有该资源
	private List<UserInfo> userList;

	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	
	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	
	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
	

	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	
	public List<UserInfo> getUserList() {
		return userList;
	}

	public void setUserList(List<UserInfo> userList) {
		this.userList = userList;
	}

}
